/**
 * 
 */
package com.hjb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.TestService;
import com.hjb.service.domain.siteuser.SiteUser;
import com.hjb.service.mapper.SiteUserMapper;

import tk.mybatis.mapper.entity.Example;

/**
 * @author XV
 *
 */
@Service
public class TestServiceImpl implements TestService {

	@Autowired
	private SiteUserMapper siteUserMapper;
	
	/* (non-Javadoc)
	 * @see com.hjb.service.TestService#gettest(java.lang.String, java.lang.String)
	 */
	@Override
	public List<SiteUser> gettest(String userid, String username) {
		
		Example example = new Example(SiteUser.class);
		example.createCriteria().andEqualTo("userId", userid).andEqualTo("bankName", username);
		return siteUserMapper.selectByExample(example);
	}

}
